home *** CD-ROM | disk | FTP | other *** search
/ Chip 2002 September / Chip_2002-09_cd1.bin / sharewar / slunec / app / httrack.exe / {app} / src_win / WinHTTrack / splitter.h < prev    next >
C/C++ Source or Header  |  2002-06-24  |  2KB  |  75 lines

  1. // splitter.h : custom splitter control and frame that contains it
  2. //
  3. // This is a part of the Microsoft Foundation Classes C++ library.
  4. // Copyright (C) 1992-1998 Microsoft Corporation
  5. // All rights reserved.
  6. //
  7. // This source code is only intended as a supplement to the
  8. // Microsoft Foundation Classes Reference and related
  9. // electronic documentation provided with the library.
  10. // See these sources for detailed information regarding the
  11. // Microsoft Foundation Classes product.
  12.  
  13. /////////////////////////////////////////////////////////////////////////////
  14. // CSplitterFrame frame with splitter/wiper
  15.  
  16. class CSplitterFrame : public CMDIChildWnd
  17. {
  18.     DECLARE_DYNCREATE(CSplitterFrame)
  19. protected:
  20.     CSplitterFrame();   // protected constructor used by dynamic creation
  21.  
  22. public:
  23.   void SetMenuPrefs();
  24.     afx_msg void Onhide();
  25.   BOOL SetNewName(CString name);
  26.   BOOL SetSaved();
  27.  
  28.  // Attributes
  29. protected:
  30.     CSplitterWnd m_wndSplitter;
  31.     //CStatusBar   m_wndStatusBar;
  32.     //CToolBar     m_wndToolBar;
  33.   NOTIFYICONDATA icnd;
  34.   //
  35.   afx_msg LRESULT IconRestore(WPARAM wParam,LPARAM lParam);
  36.  
  37. // Implementation
  38. public:
  39.   bool iconifie;
  40.   //
  41.     virtual ~CSplitterFrame();
  42.   virtual BOOL OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext);
  43.   virtual BOOL Create( LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle , const RECT& rect , CMDIFrameWnd* pParentWnd , CCreateContext* pContext );
  44.   CSplitterWnd* GetSplitter();
  45.   BOOL SetNewView(int row, int col, CRuntimeClass* pViewClass);
  46.   void EnableExtEntries(BOOL state);
  47.   void EnableSaveEntries(BOOL state);
  48.   
  49.   void IconChange(CString st);
  50.   void CheckRestore();
  51.   
  52.   // Generated message map functions
  53.   //{{AFX_MSG(CSplitterFrame)
  54.     afx_msg void OnMDIActivate(BOOL bActivate, CWnd* pActivateWnd, CWnd* pDeactivateWnd);
  55.     afx_msg void OnClose();
  56.     //}}AFX_MSG
  57.     DECLARE_MESSAGE_MAP()
  58. };
  59.  
  60. /////////////////////////////////////////////////////////////////////////////
  61. //
  62.  
  63. class CViewExSplitWnd : public CSplitterWnd
  64. {
  65.     DECLARE_DYNAMIC(CViewExSplitWnd)
  66.  
  67. // Implementation
  68. public:
  69.     CViewExSplitWnd();
  70.     ~CViewExSplitWnd();
  71.     CWnd* GetActivePane(int* pRow = NULL, int* pCol = NULL);
  72. };
  73.  
  74.  
  75.